package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 动态质押监管及解除结果同步信息
 * @date 2020-08-19 13:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "动态质押监管及解除结果同步信息", description = "动态质押监管及解除结果同步信息")
public class SyncPledgeDynamicReq extends BaseReqObj {

    private static final long serialVersionUID = 1003568793195064620L;

    @ApiModelProperty(value = "系统标志", notes = "系统标志", required = true)
    @NotEmpty(message = "系统标志不能为空")
    private String chanType;

    @ApiModelProperty(value = "唯一标识，中台系统返回的主键", notes = "主键，中台系统返回的主键", required = true)
    @NotEmpty(message = "唯一标识不能为空")
    private String trendId;

    /* @ApiModelProperty(value = "主键，发起质押监管的主键", notes = "主键，发起质押监管的主键", required = true)
    @NotEmpty(message = "发起质押监管的主键不能为空")
    private String taskId;*/

    @ApiModelProperty(value = "最低监管数量", notes = "最低监管数量")
    private String lowAmount;

    @ApiModelProperty(value = "最低监管重量", notes = "最低监管重量")
    private String lowWeight;

    @ApiModelProperty(value = "指令，ZYJG-质押监管、JCZYJG-解除质押监管", notes = "指令，ZYJG-质押监管、JCZYJG-解除质押监管", required = true)
    @NotEmpty(message = "指令不能为空")
    private String order;

    @ApiModelProperty(value = "结果\n1 质押监管成功; 2 质押监管失败; 3 解除质押监管成功; 4 解除质押监管失败；5 换货成功；6 换货失败",
        notes = "结果\n1 质押监管成功; 2 质押监管失败; 3 解除质押监管成功; 4 解除质押监管失败；5 换货成功；6 换货失败", required = true)
    @NotEmpty(message = "结果不能为空")
    private String result;

    @ApiModelProperty(value = "原因", notes = "原因")
    private String reason;

}
